package com.xmg.p2p.business.domain;

import java.util.HashMap;
import java.util.Map;

import lombok.Getter;
import lombok.Setter;

import com.alibaba.fastjson.JSONObject;
import com.xmg.p2p.base.domain.BaseDomain;

/**
 * 平台的账户信息
 *
 */
@Setter @Getter
public class PlatformBankinfo extends BaseDomain {

	
	private String bankName ; //银行名称
	private String accountName ; //开户人姓名
	private String accountNumber  ; //开户人银行账号
	private String forkName ; //开户支行

	public String getJsonString(){
		Map<String, Object> json = new HashMap<String, Object>();
		json.put("id",id);
		json.put("bankName",bankName);
		json.put("accountName",accountName);
		json.put("accountNumber",accountNumber);
		json.put("forkName",forkName);
		return JSONObject.toJSONString(json);
		
	}

	@Override
	public String toString() {
		return "PlatformBankinfo{" +
				"bankName='" + bankName + '\'' +
				", accountName='" + accountName + '\'' +
				", accountNumber='" + accountNumber + '\'' +
				", forkName='" + forkName + '\'' +
				'}';
	}
}
